import Vue from "vue";
import VueI18n from "vue-i18n";
import store from '@/store/index'
Vue.use(VueI18n);

export const i18n = new VueI18n({
    locale: store.state.lang.langText || "en",
    messages: {
        zh: require("./setting/zh"),
        en: require("./setting/en")
    }
});

export default i18n;
